package com.bookshop.service;

import com.bookshop.dao.IUserDao;
import com.bookshop.model.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserService {
    @Autowired
    private IUserDao dao;
    public UserModel findByUser(String username){
        return dao.findByUser(username);
    }
    public int addUser(UserModel model){
        return dao.addUser(model);
    }

    public UserModel findByUserid(String userid) {
        return dao.findByUserid(userid);
    }

    public void editUser(UserModel userModel) {
        dao.editUser(userModel);
    }
}
